package com.lantosec.hmrp.modules.archives.vo;

import java.time.LocalDateTime;
import java.util.Date;

import com.lantosec.hmrp.modules.archives.entity.UserBonusPenalty;
import com.lantosec.hmrp.core.mvc.BaseVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 领导干部奖惩情况登记表 VO对象
 * </p>
 *
 * @author AutoCode
 * @since 2020-06-11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="UserBonusPenalty对象", description="领导干部奖惩情况登记表")
public class UserBonusPenaltyVO extends BaseVO<UserBonusPenalty> {
    private static final long serialVersionUID = 1L;


    public UserBonusPenaltyVO(UserBonusPenalty entity){
        this.userBonusPenaltyId = entity.getUserBonusPenaltyId();
        this.userId = entity.getUserId();
        this.bonusPenaltyFlag = entity.getBonusPenaltyFlag();
        this.happenDate = entity.getHappenDate();
        this.name = entity.getName();
        this.reason = entity.getReason();
        this.grantOrg = entity.getGrantOrg();
        this.refNo = entity.getRefNo();
        this.remark = entity.getRemark();
        this.createId = entity.getCreateId();
        this.createUser = entity.getCreateUser();
        this.createTime = entity.getCreateTime();
        this.verifyId = entity.getVerifyId();
        this.verifyUser = entity.getVerifyUser();
        this.verifyTime = entity.getVerifyTime();
        this.verifyStatus = entity.getVerifyStatus();
    }

    @Override
    public UserBonusPenalty convertToEntity(){
        return new UserBonusPenalty(this);
    }


    @ApiModelProperty(value = "主键ID")
    private String userBonusPenaltyId;

    @ApiModelProperty(value = "用户主表ID")
    private String userId;

    @ApiModelProperty(value = "奖惩标志（0：奖，1：惩）")
    private Integer bonusPenaltyFlag;

    @ApiModelProperty(value = "发生时间")
    private String happenDate;

    @ApiModelProperty(value = "奖惩名称")
    private String name;

    @ApiModelProperty(value = "奖惩原因")
    private String reason;

    @ApiModelProperty(value = "奖惩机关")
    private String grantOrg;

    @ApiModelProperty(value = "文号")
    private String refNo;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private String createId;

    @ApiModelProperty(value = "创建人姓名")
    private String createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "审核人ID")
    private String verifyId;

    @ApiModelProperty(value = "审核人姓名")
    private String verifyUser;

    @ApiModelProperty(value = "审核时间")
    private Date verifyTime;

    @ApiModelProperty(value = "审核状态（0：未审核，1：以审核）")
    private Integer verifyStatus;

    @ApiModelProperty(value = "审核通过状态")
    private Integer state;
}
